<template>
  <Input :formatter="formatterInputNumber" v-bind="$attrs" type="number">
    <template v-for="(slot, k) in $slots" :key="k" v-slot:[k]="slotProps">
      <slot :name="k" v-bind="slotProps ?? {}" />
    </template>
  </Input>
</template>
<script lang="ts" setup>
import Input from './input.vue';
const formatterInputNumber = (value: number | string): string => {
  if (value === undefined || value === '' || value === null) return '';
  return Number(value).toString();
};
</script>
